@(projects: List[Project])

@import play.i18n._

<table class="projects-list">
	<tr>
		<th class="project-name">@Messages.get("view.project.list.name.column")</th>
		<th class="project-description">@Messages.get("view.project.list.desc.column")</th>
		<th class="project-default-config">@Messages.get("view.project.list.defaultconfig.column")</th>
		<th class="project-created-date">@Messages.get("view.project.list.createddate.column")</th>
		<th class="project-last-modified-date">@Messages.get("view.project.list.lastmodifieddate.column")</th>
		<th class="project-run-tests">@Messages.get("view.project.list.test.column")</th>
	</tr>
	@for(project <- projects) {
		<tr>
			<td class="project-name"><a href="@routes.Projects.editProject(project.getId())" title="@Messages.get("view.project.list.name.title")">@project.getName()</a></td>
			<td class="project-description">@project.getDescription()</td>
			<td class="project-default-config">
				@if(project.getDefaultConfiguration() != null ) {
					<a href="@routes.Projects.showDefaultConfig(project.getId())" title="@Messages.get("view.project.list.config.title") (@project.getDefaultConfiguration().getName())"><img alt="@Messages.get("view.project.list.defaultconfig.title")" src="@routes.Assets.at("img/config.png")" /></a>
				}
			</td>
			<td class="project-created-date">@project.getCreatedDate().format(play.Play.application().configuration().getString("datetime.format"))</td>
			<td class="project-last-modified-date">@project.getLastModifiedDate().format(play.Play.application().configuration().getString("datetime.format"))</td>
			<td class="project-run-tests">
				@if(project.getDefaultConfiguration() != null) {
					<a href="@routes.Projects.runTestsWithDefaultConfig(project.getId())" class="run-tests open-popup" title="@Messages.get("view.project.list.test.title") (@project.getDefaultConfiguration().getName())">@Messages.get("view.project.list.test.link") &raquo;</a>
				}
			</td>
		</tr>
	}
</table>
